/**
 * 
 */
package com.imooc.security.core.social.qq.connet;

import org.springframework.social.connect.support.OAuth2ConnectionFactory;

import com.imooc.security.core.social.qq.api.QQ;

/**
 * ConnectionFactory需要ApiAdapter和ServiceProvider
 * ConnectionFactory用于构建Connection
 * ConnectionFactory在SocialAutoConfigurerAdapter(QQAutoConfiguration)配置类中进行配置,此处不需要任何额外配置
 */
public class QQConnectionFactory extends OAuth2ConnectionFactory<QQ> {

	public QQConnectionFactory(String providerId, String appId, String appSecret) {
		super(providerId, new QQServiceProvider(appId, appSecret), new QQAdapter());
	}

}
